package com.tdd;

import org.junit.Before;
import org.junit.Test;

public class PrimeFactorsTest {
	HpStack stack;
	private Integer value;

	@Before
	public void init() {
		stack = new HpStack();
	}

	@Test
	public void primeFactorsOf2Are2() {
		givenAnOperandOf(2);
		whenCalculatingItsPrimeFactors();
		thenTheResultShouldInclude(2);
	}

	private void thenTheResultShouldInclude(Integer expected) {
		assertEquals(expected, stack.pop());
	}

	private void whenCalculatingItsPrimeFactors() {
	}

	private void givenAnOperandOf(Integer value) {
		this.value = value;
	}
}
